/**
 * 
 */
package com.google.code.sip.ucenter.model;

import java.util.Date;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Reference;

/**
 * 短消息实体类
 * 
 * 私人消息, 悄悄话, 电脑聊天时用户之间发送的其他用户看不到的消息
 * 
 * @author Liuye
 * 
 */
@Entity(noClassnameStored = true)
@SuppressWarnings("serial")
public class PrivateMessage extends BaseEntity {
	/**
	 * 消息发送人
	 */
	@Reference
	private User sender;

	/**
	 * 消息接收人
	 */
	@Reference
	private User receiver;

	/**
	 * 消息标题
	 */
	private String subject;
	/**
	 * 消息内容
	 */
	private String content;

	/**
	 * 发送日期
	 */
	private Date createdDate = new Date();

	/**
	 * 消息文件夹
	 * 
	 * inbox,收件箱，outbox，发送箱
	 * 
	 */
	private String folder;

	public User getSender() {
		return sender;
	}

	public void setSender(User sender) {
		this.sender = sender;
	}

	public User getReceiver() {
		return receiver;
	}

	public void setReceiver(User receiver) {
		this.receiver = receiver;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getFolder() {
		return folder;
	}

	public void setFolder(String folder) {
		this.folder = folder;
	}
}
